package com.jic.point.api;

import com.jic.common.base.vo.RestResult;
import com.jic.point.rest.request.CasartePointsCollectionQueryRequest;
import com.jic.point.rest.request.CollectionInKindRequest;
import com.jic.point.rest.request.PointsCollectionRequest;
import com.jic.point.rest.response.CasartePointsCollectionQueryResponse;
import com.jic.point.rest.response.CollectionInKindResponse;
import com.jic.point.rest.response.PointsCollectionResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Auther YGH
 * @DATE 2020/11/25/17:07
 */
@FeignClient(name = "jic-point", path = "/api/receive/")
@Api(tags = " [积分/实物 领取]")
public interface IntegralMaterialObjectReceiveApi {

    @PostMapping("getPointCollection")
    @ApiOperation(value = "积分领取-调用积分中心领取积分")
    RestResult<PointsCollectionResponse> getPointCollection(@RequestBody PointsCollectionRequest pointsCollectionRequest);

    @PostMapping("getCollectionInKind")
    @ApiOperation(value = "实物领取-调用海贝商城领取实物")
    RestResult<CollectionInKindResponse> getCollectionInKind(@RequestBody CollectionInKindRequest collectionInKindRequest);

    @PostMapping("getCasarteCollectionInKind")
    @ApiOperation(value = "卡萨帝积分领取查询")
    RestResult<CasartePointsCollectionQueryResponse> getCasartePointQueryCollection(@RequestBody CasartePointsCollectionQueryRequest casartePointsCollectionQueryRequest);

}
